package book;

public class BookList {
    private Book1[] book1s = new Book1[10];
    private int usedSize;
    public BookList(){
        book1s[0] = new Book1("三国演义","罗贯中",18,"小说");
        book1s[1] = new Book1("西游记","吴承恩",20,"小说");
        book1s[2] = new Book1("水浒传","施耐庵",34,"小说");
        this.usedSize = 3;

    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
    public Book1 getPos(int pos){
        return this.book1s[pos];
    }
    public void setBook1s(int pos,Book1 book1){
        this.book1s[pos] = book1;
    }
}
